//
//  MVData.m
//  __PRODUCTNAME__
//
//  Created by QC.L on 16/08/15
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "MVData.h"
#import "MVShowPlay.h"
#import "MVContents.h"
@implementation MVData
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"contents"]) {
        _contents = [MVContents modelWithDic:value];
        
    } else if ([key isEqualToString:@"mv_show_play"]) {
        NSMutableArray<MVShowPlay *> *array = [NSMutableArray array];
        NSArray *valueArray = value;
        for (NSDictionary *dic in valueArray) {
            MVShowPlay *mv = [MVShowPlay modelWithDic:dic];
            [array addObject:mv];
        }
        _mv_show_play = array;
    }
}



+ (NSDictionary *)objectClassInArray{
    return @{@"mv_show_play" : [MVShowPlay class]};
}

@end
